package com.dubbo.provider.service.impl;

import com.dubbo.test.infterface.DemoService;
import org.apache.dubbo.config.annotation.DubboService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @author wbc
 * @description
 * @date 2023/10/12 14:55
 */

@DubboService
@Component

public class DemoServiceImpl implements DemoService {
    private static final Logger log = LoggerFactory.getLogger(DemoServiceImpl.class);

    @Override
    public String sayHello(String name) {
        log.info("用户名字是：{}", name);
        return "Hello, " + name + "!!!";
    }
}
